﻿using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.PushMessage
{
    /// <summary>
    /// 阿里云推送服务
    /// </summary>
    public interface IAliyunPushService
    {
        /// <summary>
        /// 单播推送
        /// </summary>
        /// <param name="appType">App类型</param>
        /// <param name="userId">用户Id</param>
        /// <param name="title">标题</param>
        /// <param name="body">正文</param>
        /// <param name="obj">推送点击所需参数对象</param>
        /// <param name="barTypeId">推送头部bar类型</param>
        /// <param name="iosMusic">iosMusic</param>
        void Unicast(AppType appType, long userId, string title, string body, object obj = null, int? barTypeId = null, string iosMusic = null);
        void Unicast(AppType appType, long[] userIds, string title, string body, object obj = null, int? barTypeId = null, string iosMusic = null);
        void UnicastAsync(AppType appType, long userId, string title, string body, object obj = null, int? barTypeId = null, string iosMusic = null);
        void UnicastAsync(AppType appType, long[] userIds, string title, string body, object obj = null, int? barTypeId = null, string iosMusic = null);
    }
}
